package com.zy.swagger.entity.sys;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 角色菜单关联表(RoleMenu)实体类
 *
 * @author ZY
 * @date 2021-04-01 02:19:05
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "role_menu")
public class RoleMenu implements Serializable {

    private static final long serialVersionUID = -48921500848851941L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "JDBC")
    private Integer id;

    private Integer menuId;

    private Integer roleId;

}